home *** CD-ROM | disk | FTP | other *** search
/ JCSM Shareware Collection 1996 September / JCSM Shareware Collection (JCS Distribution) (September 1996).ISO / gameothr / wordy411.zip / PATTERN.DOC < prev    next >
Text File  |  1995-12-17  |  4KB  |  86 lines

  1.                        PATTERN: PATTERN MATCHING UTILITY
  2. ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  3.  
  4. November - December, 1995
  5.  
  6.            This utility was inspired by a challenge by J.C.
  7.              of the crossword-games@mit.edu mailing list.
  8.  
  9. The PATTERN utility will search the WORD.LST for words matching a given 
  10. scheme of letter occurrences. Number the first occurrence of each letter 
  11. by a consecutive digit. The first letter of the word is always 1, if the 
  12. second letter is the same as the first, it is also a 1, otherwise it is a 2. 
  13. Number each succeeding letter the same as the previous letter(s) it matches, 
  14. and if it does not match an previous letter, give it the next consecutive 
  15. number.
  16.  
  17. For example, the word      tinting     may be represented by the pattern 
  18. 1231234, thusly:           1231234.
  19. The 't', the first letter repeats after two other letters, tinting.
  20.                                                            1  1
  21. The 'i', the second letter of its kind, repeats similarly, tinting.
  22.                                                             2  2
  23. And so forth. The occurrences of the first letter are denoted as as 1's. 
  24. Likewise, occurrences of subsequent letters get numbered consecutively.
  25.  
  26. More examples:
  27.  
  28. aa     aalii   and    abacus     beckon     delight    deemed    diamond
  29. 11     11233   123    121345     12345      123456     122321    1234561
  30.  
  31. ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  32.  
  33. To invoke PATTERN, type PATTERN nnnnnn where nnnnnn is a letter pattern, as 
  34. shown above. This defaults to searching the file WORD.LST. To search any 
  35. *other* file (besides WORD.LST), type PATTERN nnnnnn ffffff, where nnnnnn is 
  36. a letter pattern, and fffff is the file name to search. 
  37.  
  38. ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  39.  
  40. Typing PATTERN 1221223 gets the following output in the file MATCHED.PAT :
  41.  
  42.  
  43. ════════════════════════════════════════════════════════════════════════════════
  44.                      Words fitting the pattern of: 1221223
  45. ════════════════════════════════════════════════════════════════════════════════
  46. beebees
  47. booboos
  48. muumuus
  49. weeweed
  50. weewees
  51. ********************************************************************************
  52.                        5 words fit the pattern of 1221223.
  53.  
  54.  PATTERN MATCH util. : M\Cooper, 3425 Chestnut Ridge Rd., Grantsville, MD 21536
  55.  
  56. ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  57.  
  58. How is PATTERN useful to the word game player? You, the users of the WORDY 
  59. system are herewith challenged to find applications for PATTERN. The best 
  60. uses of PATTERN submitted by *registered* WORDY users will result in the 
  61. return of the registration fee to those users. Suggestion: invent new word 
  62. games involving letter patterns in the above format.
  63.  
  64. One interesting use for  PATTERN  is to generate lists of words in which *no*
  65. letters repeat. Typing PATTERN 1234567 generates a list of 7648  seven-letter
  66. words in which each word has seven different letters.
  67.  
  68. ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  69.  
  70. Still(!) $2.00 to register the *entire* WORDY package.
  71.  
  72. M\Cooper
  73. 3425 Chestnut Ridge Rd.
  74. Grantsville, MD 21536-9801
  75. --------------------------
  76. E-mail: thegrendel@aol.com
  77.  
  78.  
  79.  
  80. WORDY (pd) is *not* a trademark, and may not be trademarked.     It is in the 
  81. Public Domain, which means it belongs to everyone.
  82.  
  83.  
  84.  
  85.  
  86.